//
//  BattleLayerBase.m
//  SpaceStorm
//
//  Created by 祥 雍 on 13-5-19.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "BattleLayerBase.h"

@implementation BattleLayerBase

-(void) updateViewType:(BattleViewType) changeToType
{
    //TODO
}



-(void)setViewpointCenter:(CGPoint) position 
{
//    CGSize winSize = [[CCDirector sharedDirector] winSize];  
//    
//    int x = MAX(position.x, winSize.width / 2);  
//    int y = MAX(position.y, winSize.height / 2);  
//    x = MIN(x, (_tileMap.mapSize.width * _tileMap.tileSize.width)   
//            - winSize.width / 2);  
//    y = MIN(y, (_tileMap.mapSize.height * _tileMap.tileSize.height)   
//            - winSize.height/2);  
//    CGPoint actualPosition = ccp(x, y);  
//    
//    CGPoint centerOfView = ccp(winSize.width/2, winSize.height/2);  
//    CGPoint viewPoint = ccpSub(centerOfView, actualPosition);  
//    self.position = viewPoint;  
    
}  



@end
